package io.github.lee.jel.domain

import androidx.annotation.Keep

import com.google.gson.annotations.SerializedName


@Keep
data class Folder(
    @SerializedName("BackdropImageTags")
    val backdropImageTags: List<Any?>? = null,
    @SerializedName("CanDelete")
    val canDelete: Boolean? = null,
    @SerializedName("CanDownload")
    val canDownload: Boolean? = null,
    @SerializedName("ChannelId")
    val channelId: Any? = null,
    @SerializedName("ChildCount")
    val childCount: Int? = null,
    @SerializedName("CollectionType")
    val collectionType: String? = null,
    @SerializedName("DateCreated")
    val dateCreated: String? = null,
    @SerializedName("DisplayPreferencesId")
    val displayPreferencesId: String? = null,
    @SerializedName("EnableMediaSourceDisplay")
    val enableMediaSourceDisplay: Boolean? = null,
    @SerializedName("Etag")
    val etag: String? = null,
    @SerializedName("ExternalUrls")
    val externalUrls: List<Any?>? = null,
    @SerializedName("GenreItems")
    val genreItems: List<Any?>? = null,
    @SerializedName("Genres")
    val genres: List<Any?>? = null,
    @SerializedName("Id")
    val id: String? = null,
    @SerializedName("ImageTags")
    val imageTags: ImageTags? = null,
    @SerializedName("IsFolder")
    val isFolder: Boolean? = null,
    @SerializedName("LocalTrailerCount")
    val localTrailerCount: Int? = null,
    @SerializedName("LocationType")
    val locationType: String? = null,
    @SerializedName("LockData")
    val lockData: Boolean? = null,
    @SerializedName("LockedFields")
    val lockedFields: List<Any?>? = null,
    @SerializedName("Name")
    val name: String? = null,
    @SerializedName("ParentId")
    val parentId: String? = null,
    @SerializedName("Path")
    val path: String? = null,
    @SerializedName("People")
    val people: List<Any?>? = null,
    @SerializedName("PlayAccess")
    val playAccess: String? = null,
    @SerializedName("PrimaryImageAspectRatio")
    val primaryImageAspectRatio: Double? = null,
    @SerializedName("RemoteTrailers")
    val remoteTrailers: List<Any?>? = null,
    @SerializedName("ServerId")
    val serverId: String? = null,
    @SerializedName("SortName")
    val sortName: String? = null,
    @SerializedName("SpecialFeatureCount")
    val specialFeatureCount: Int? = null,
    @SerializedName("Studios")
    val studios: List<Any?>? = null,
    @SerializedName("Taglines")
    val taglines: List<Any?>? = null,
    @SerializedName("Tags")
    val tags: List<Any?>? = null,
    @SerializedName("Type")
    val type: String? = null,
    @SerializedName("UserData")
    val userData: UserData? = null
) {
    val image: String
        get() {
//             ?fillHeight=266&fillWidth=472&quality=96&tag=a2e4d0a11aca9d400a96ab0f10500967

            return "/Items/${id}/Images/Primary?tag=${imageTags?.primary}"
        }

}





